/**
 * gbl头部js响应事件
 * 搜索栏的内容传递
 * 9.23 21:29
 */

function seekBtn() {
    var area = document.getElementById("seek_index");
    if (area.value == ''){
        alert("没有输入内容");
        window.location.href = 'home.html';
    }else {
        switch (area.value) {
            case "黄山":
                window.location.href = 'areashow.html?area=hs';
                window.event.returnValue=false;
                break;
            case "hs":
                window.location.href = 'areashow.html?area=' + area.value;
                window.event.returnValue=false;
                break;
            case "烧烤":
                window.location.href = 'areashow.html?label=' + area.value;
                window.event.returnValue=false;
                break;
            case "海鲜":
                window.location.href = 'areashow.html?label=' + area.value;
                window.event.returnValue=false;
                break;
            case "微辣":
                window.location.href = 'areashow.html?label=' + area.value;
                window.event.returnValue=false;
                break;
            case "爽口":
                window.location.href = 'areashow.html?label=' + area.value;
                window.event.returnValue=false;
                break;
            default:
                alert("该类食物尚未添加");
        }

    }
}